package org.njjnox.atm;

public class Transaction {
	
	private Client from;
	private Client to;
	private int amount;
	
	
	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public Client getFrom() {
		return from;
	}

	public void setFrom(Client from) {
		this.from = from;
	}

	public Client getTo() {
		return to;
	}

	public void setTo(Client to) {
		this.to = to;
	}



	public void sendCash(){
		System.out.println("Sending " + amount + " form: " + getFrom().name + " to: " + to.name);
	}
}
